home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / animatin / anim_g2p / phasor / phasor.doc < prev    next >
Encoding:
Text File  |  1995-04-26  |  1.6 KB  |  33 lines

  1.  
  2.        This document was generated from file phasor.FOR
  3.                                  on 20-NOV-85 at  1:28: 4
  4.  ________________________________________________________________________
  5.  ________________________________________________________________________
  6.  
  7.  
  8.          PROGRAM PHASOR
  9.  C               L. R. FORTNEY   1/31/81 on a Z80
  10.  C               Working on Atari 10/9/87
  11.  C         This program draws two rotating phasors on the complex plane and
  12.  C       displays their x-projection as the phasors rotate.  The amplitude
  13.  C       and frequency of one phasor is adjustable using the arrow keys.  The
  14.  C       projected display can be of both phasors separately or of their summed
  15.  C       signal.  Useful for showing beats.
  16.  C          Works only on hi-res mono displays.
  17.  C
  18.  ________________________________________________________________________
  19.          SUBROUTINE ARROW(K,IX,IY,LNG,IXE,IYE)
  20.  ________________________________________________________________________
  21.          SUBROUTINE EARROW(KV)
  22.  C              ERASE DISPLAY FOR ARROW
  23.  ________________________________________________________________________
  24.          SUBROUTINE CARROW(K)
  25.  C              COMPLEMENT DISPLAY FOR ARROW
  26.  ________________________________________________________________________
  27.          FUNCTION KEY(ISTAT)
  28.  C               READ KEYBOARD WITH NO HANG
  29.  C               ISTAT=0 AND KEY=-1 IF NO CHARACTER AVAILABLE TO RETURN
  30.  C               OTHERWISE
  31.  C               ISTAT=-1 AND LOW BYTE OF KEY CONTAINS ASCII CODE
  32.  ________________________________________________________________________
  33.